package com.webView;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

public class Main extends Activity 
{
    private WebView webView;
	

    private class BrainStormingWebViewClient extends WebViewClient {
    	public boolean shouldOverrideUrlLoading(WebView view, String url)
    	{
    		view.loadUrl(url);
    		return true;
    	}
    }	
	
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        
        webView = (WebView)findViewById(R.id.webView1);
   
        webView.getSettings().setJavaScriptEnabled(true);
        webView.getSettings().setPluginsEnabled(true);
        webView.getSettings().setDomStorageEnabled(true);
        webView.getSettings().setDatabaseEnabled(true);
        webView.getSettings().setAppCacheEnabled(true);
        
        webView.setWebViewClient(new BrainStormingWebViewClient());      
        
        webView.loadUrl(this.getResources().getString(R.string.login_url));
    }
}
















